package top.tocchen.bookshop.dao;

import org.apache.ibatis.annotations.Mapper;
import top.tocchen.bookshop.entity.CartEntity;
import top.tocchen.bookshop.entity.CartDoEntity;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
public interface CartDao {

    int insert(CartEntity record);

    int insertSelective(CartEntity record);

    List<CartDoEntity> findByCartUserId(Integer uid);

    void deleteByUserID(Integer id);

    void updateByIdSetCount(CartEntity cart);

    List<CartEntity> findAll();
}